Labels:text | screenshot | font | number OCR: Figure 1 ISnapln Interface Methods Method Description HINSTANCE GetRet ourceInstance word) Returns a handle to the module that contains the string and bitmap resources user, to add the snap-in to the menu bar and toolbar. You can retten NULL if the snap-in won' appear as i menu item. int Getafenu TextLD>: void? Returns theresmiree ID of the menu.item text for the snap-in, Ifyou don't wantthe snap- in to appear as a menu item, you should return - 1. int GetMessageTextID(void! Returns the resource ID of the status bar text. Ta provide a tooltip, place that text at the end of the status bar text, separated by \n, If you don't want text to appear in the status bar, you should return -1. This method isonly called if che snag in appears as a menu. item. Int Get Bitmap1DinSize: Returns the resource I'D) of the bitmap to be displayed in the application toolbar. Since the application may support various toalbar sizes, the hutton size is passed "as a parameter. If you don't want the snap-in to appear in the toolbar, or if you don's support a particular bitmap size, you should return. .. This method is only called if the Har-in appears as a menu item BOOL, SupportsInterfaceil[inknown ipUnik] Although an application should only load snap-ins that are marked in the registry as supporting a compatibile interface, this method provides on extra safeguard. The application passes this method its context interface intmediately after the shap in in landed .If thesnap-in enr not successfully query po interface that it recognizes it returns FALSE. void Onstate Changell Unknown" lpUnki Called whenever the state of an application changes in a way that affects the' snap-in. The application passes this method a pointer to its context interface .. toad IsEnabled IUnknown iptak; Called by the application to determine whether or not the sopp-in menu item should be enabled In an MFC application, this method is called in respmit Loan ON ,UPDATE COMMAND> Ul message. Thus, depending upon application context, a snap-in may be unavailable. to the imer void OnCommandilUnknown: IpUnk Called w ben the user selects the snap-in from the mend bur or tonibar. The application passes this method a pointer to its cuntext interface